import {  GetEquipmentLedgerListData } from "./apiTypes"
import request from "/@/utils/request"

/**
 * 获取设备台账列表
 * @param data
 */
export function GetEquipmentLedgerList(data?: GetEquipmentLedgerListData) {
    return request({
        url: '/report/EquipmentLedger/GetEquipmentLedgerList',
        method: 'post',
        data: data
    })
}

/**
 * 删除设备台账
 * @param data
 */
export function DeleteEquipmentLedger(data?: any) {
    return request({
        url: '/report/EquipmentLedger/DeleteEquipmentLedger',
        method: 'post',
        data: data
    })
}
/**
 * 创建设备台账
 * @param data
 */
export function CreateEquipmentLedger(data?: object) {
    return request({
        url: '/report/EquipmentLedger/CreateEquipmentLedger',
        method: 'post',
        data: data
    })

}
/**
 * 修改设备台账
 * @param data
 */
export function UpdateEquipmentLedger(data?: object) {
    return request({
        url: '/report/EquipmentLedger/UpdateEquipmentLedger',
        method: 'post',
        data: data
    })

}
/**
 * 获取设备类型
 * @param data
 */
export function getValueSet(data?: any) {
    return request({
        url: '/wms/getValueSet/GetDicItemByCode',
        method: 'post',
        data: data
    })
}